import { SET_VIEW_ACTION } from "../actions/viewAction";

export const view = (state = null, action) => {
    if (action.type === SET_VIEW_ACTION) {
        return action.view;
    } else {
        return state;
    }
};